<?php

defined('BASEPATH') OR exit('No direct script access allowed');

/**
 * Description of MY_Controller
 *
 * @author bxsp
 */
class MY_Controller extends CI_Controller {

    public function __construct() {
        parent::__construct();
        $sess_data = $this->session->userdata();
        if (!isset($sess_data['role'])) {
            //show_error('403 Forbidden!');
            //TODO 优化拒绝访问流程
            redirect('/member/login/');
        }
    }

}
